﻿using System;
using System.Windows;
using System.Windows.Navigation;

namespace Thunder.IrcClient
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        private SplashScreen splash;

        protected override void OnActivated(EventArgs e)
        {
            base.OnActivated(e);

            return;
        }

        protected override void OnLoadCompleted(NavigationEventArgs e)
        {
            base.OnLoadCompleted(e);

            return;
        }

        protected override void OnStartup(StartupEventArgs e)
        {
            this.splash = new SplashScreen();
            this.splash.Show();

            base.OnStartup(e);

            return;
        }

        internal void CloseSpashScreen()
        {
            this.splash.Dispose();
            this.splash = null;
        }
    }
}